<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>事件处理指令</title>
		<script src="../org/angular.min.js" ></script>
	</head>
	<body>
		<div ng-app = "hd" ng-controller = "ctrl">
			<input type="text" onblur="run()" />  
			<input type="text" ng-focus="show()" />  ng-keydown,ng-keyup,ng-keypress,ng-mousemove,ng-mouseover(ng-mouseenter),ng-mouseout(ng-mouseleave),ng-blur,ng-focus
			{{title}}
		</div> 
		<script>
		    function run(){
		    	console.log('原生JS');
		    };
			var m = angular.module('hd',[]);
			m.controller('ctrl',['$scope',function($scope){
				$scope.title="";
				$scope.show=function(){
					$scope.title+="bjjadef ";
				}
			}]);
		</script>
	</body>
</html>
